﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace shop.Model
{
    /// <summary> 运费计算策略 </summary>
    public class PostCalcStrategy
    {
        [Column(IsIdentity =true, IsPrimary =true)]
        public int id {  get; set; }

        /// <summary> 名称 </summary>
        [Column(StringLength =100)]
        public string Name { get; set; }

        /// <summary> 重量范围(最大重量) </summary>
        [Column(Precision =18, Scale =4)]
        public decimal MaxWeight { set; get; }

        /// <summary> 增加重量 </summary>
        [Column(Precision = 18, Scale = 4)]
        public decimal AddWeight { set; get; }


        public bool isDetails { get; set; }

        public bool isdel { get; set; }


        [Column(IsIgnore =true)]
        public List<PostCalcStrategy> Items { get; set; }


    }


    public class PostCalcStrategyDto : PostCalcStrategy
    {
        public string Logi { get; set; }
    }

}
